package shape;

public class Square extends Rectangle{
    double Side;
    Square () {
        Name = "Square";
    }
    Square (double side) {
        Side = side;
        Name = "Square";
    }
    Square (double side, String color) {
        Side = side;
        Color = color;
        IsFilled = true;
        Name = "Square";
    }
    public double getSide () {
        return Side;
    }
    public void setSide (double side) {
        Side = side;
    }
    public double getWidth () {
        return Side;
    }
    public void setWidth (double width) {
        Side = width;
    }
    public double getHeight () {
        return Side;
    }
    public void setHeight (double height) {
        Side = height;
    }
    public double getArea() {
        return Side * Side;
    }
    public double getPerimeter() {
        return 4 * Side;
    }
}
